package com.hmdp.utils;

public class RedisConstants {

    //存放登录时正确的code(注册时获得的验证码)
    public static final String LOGIN_CODE_KEY = "login:code:";

    //存放用户登录时正确的手机号(注册时输入的手机号)
    public static final String LOGIN_PHONE_KEY = "login:phone:";

    //存放用户登录时正确的手机和验证码
    public static final String LOGIN_USER_INFO = "login:user:info";

    //存放用户登录后的基本信息
    public static final String LOGIN_USER_KEY = "login:token:";


    public static final Long LOGIN_CODE_TTL = 2L;

    public static final Long LOGIN_USER_TTL = 36000L;

    public static final Long CACHE_NULL_TTL = 2L;

    public static final Long CACHE_SHOP_TTL = 30L;
    public static final String CACHE_SHOP_KEY = "cache:shop:";

    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 10L;

    public static final String SECKILL_STOCK_KEY = "seckill:stock:";
    public static final String BLOG_LIKED_KEY = "blog:liked:";
    public static final String FEED_KEY = "feed:";
    public static final String SHOP_GEO_KEY = "shop:geo:";
    public static final String USER_SIGN_KEY = "sign:";



}
